//
//  IntegralAmount.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "IntegralAmount.h"

@implementation IntegralAmount
+ (instancetype)IntegralAmountWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        NSNumberFormatter* numberFormatter = [[NSNumberFormatter alloc] init];
        self.IntegralAmountId = [[numberFormatter stringFromNumber:dic[@"Id"]] intValue];
        self.Uid = [[numberFormatter stringFromNumber:dic[@"Uid"]] intValue];
        self.GetMoney = [[numberFormatter stringFromNumber:dic[@"GetMoney"]] doubleValue];
        self.GetScore = [[numberFormatter stringFromNumber:dic[@"GetScore"]] intValue];
        self.Description = dic[@"Description"];
        self.CreateTime = (NSDate *)dic[@"CreateTime"];
    }
    return self;
}
@end
